<?php
class DeskService
{
	static public function search()
	{
		$deskDao = new DeskDao();
		$seatDao = new SeatDao();
		$desks = $deskDao->getDeskList();
		for ($i = 0; $i < count($desks); $i++)
		{
			$desks[$i]['seats'] = $seatDao->getSeatList($desks[$i]['id']);
		}
		return $desks;
	}
}